package net.jeanhwea.tmp;

import java.io.IOException;
import java.net.*;
import javax.net.ssl.*;
public class OnlyMain1 {

	public static void main(String[] args) {
//		String url = "http://www.httprecipes.com/1/5/secure/";
//		String url = "http://jeanhweaeclipse.googlecode.com/";
//		String url = "https://jeanhweaeclipse.googlecode.com/";
		String url = "https://www.httprecipes.com/1/5/https.php";
		try {
			URL u = new URL(url);
			URLConnection con = u.openConnection();
			
			if(con instanceof HttpsURLConnection){
				System.out.println("111");
			} else if (con instanceof HttpURLConnection){
				System.out.println("222");
			} else {
				System.out.println("end");
			}
			
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		System.out.println("\nTerminated");
	}

}
